import java.util.*;
public class Test_7_16_1 {
    //求两个正整数的最小公倍数
    public static void main(String[] args) {
        Scanner in  = new Scanner(System.in);
        int n1 = in.nextInt();
        int n2 = in.nextInt();
        System.out.println(n1 * n2 / gcd(n1,n2));
    }
    //求最小公倍数
    public static int gcd(int n1, int n2){
        if (n2 == 0){
            return n1;
        }
        return gcd(n2, n1 % n2);
    }
}
